package com.malou.client.ventas.salidastock;

import com.extjs.gxt.ui.client.widget.MessageBox;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.malou.client.MalouConstants;
import com.malou.client.util.MensajeData;

public class SalidaStocks {

		private static SalidaStockServiceAsync ses = GWT.create(SalidaStockService.class);
		private static MalouConstants constants = GWT.create(MalouConstants.class);	
		
		public static void disminuyeStockTienda(SalidaStock se){
			ses.disminuyeStockTienda(se, new AsyncCallback<MensajeData>(){

				@Override
				public void onFailure(Throwable caught) {
					MessageBox.alert(constants.sistemaMarcocruzado(), constants.errorConexion(), null);
		    	}

				@Override
				public void onSuccess(MensajeData data) {
	            
				}
			});
		}


}
